﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Summation
{
    class Program
    {
        static void Main(string[] args)
        {
           double  b = 1;
            int i = 1;

            while (i<=100)
            {
                b +=  i / (i + 1.0);
                i++;
            }
            Console.WriteLine($"输出总数为{b }");

            Console.ReadKey();


        }
    }
}
